package com.zhijiaoyun.service;

import com.zhijiaoyun.model.CourseRecommend;
import com.zhijiaoyun.model.dto.CourseRecommendDto;
import com.zhijiaoyun.model.dto.PageList;

import java.util.List;
import java.util.Map;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface ICourseRecommendService {

    CourseRecommend getCourseRecommendByCourseId(Long courseId);

    void addCourseRecommendService(CourseRecommend courseRecommend);

    void deleteCourseRecommendService(CourseRecommend courseRecommend);

    List<CourseRecommendDto> getCourseRecommentByParamsDto();

    PageList<CourseRecommendDto> pageCourseRecommentByParamsDto(int pageIndex, int pageSize);

    /**
     * 分页推荐列表
     *
     * @param pageIndex
     * @param pageSize
     * @return
     */
    Map<String, Object> page(int pageIndex, int pageSize);

    /**
     * 修改推荐
     *
     * @param courseId
     * @param createUser
     * @return
     */
    Map<String, Object> updateRecommend(Long courseId, String createUser);
}
